<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>公共列表</title>
		<link rel="stylesheet" href="layui/css/layui.css" />
        <link rel="stylesheet" href="css/element.min.css?1" />
        <link rel="stylesheet" href="http://at.alicdn.com/t/font_2315128_5bb2ydgeqs.css">
        <link rel="stylesheet" href="css/reset.css?3123">
        <link rel="stylesheet" href="css/setlayui.css?12">
        <link rel="stylesheet" href="css/viewer.min.css">
		<script src="layui/layui.all.js"></script>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/vue.min.js"></script>
        <script type="text/javascript" src="js/element.min.js"></script>
        <script src="js/viewer.min.js"></script>
	</head>
	<body>
        <div id="app" class="page-container" style="display: none;" v-show="showApp">
            <div>工程信息</div>
            <div class="s_but_box" ref="butbox">
                <el-button @click="addGc" type="primary">添加工程</el-button>
                <el-button @click="editGc" type="primary">修改工程</el-button>
                <el-button @click="checkGc" type="primary">查看工程</el-button>
				<el-button type="primary">工程量清单</el-button>
                <el-button type="primary" @click="cksz_but">仓库设置</el-button>
                <el-button type="primary">实际生产计划</el-button>
            </div>
            <div>材料进场</div>
            <div class="s_but_box" ref="butbox">
				<el-button type="primary" @click="cljcAdd">添加</el-button>
				<el-button type="primary" @click="cljcEdit">修改</el-button>
                <el-button type="primary" @click="cljccheck">查看</el-button>
            </div>
            <div>材料库存</div>
            <div class="s_but_box" ref="butbox">
                <el-button type="primary" @click="clkcCk">存放数量</el-button>
                <el-button type="primary" @click="clpdAdd">添加盘点单</el-button>
                <el-button type="primary" @click="cllyAdd">添加领用单</el-button>
                <el-button type="primary" @click="jhpdAdd">添加计划盘点</el-button>
                <el-button type="primary" @click="checkPdjl">查看盘点记录</el-button>
                <el-button type="primary" @click="editPdjl">完善盘点记录</el-button>
            </div>
            <div>供应商</div>
            <div>
                <el-button type="primary" @click="addgys">添加</el-button>
                <el-button type="primary" @click="editgys">修改</el-button>
                <el-button type="primary" @click="checkgys">查看</el-button>
            </div>
            <div>施工阶段计划</div>
            <div>
                <el-button type="primary" @click="addssscjh">添加</el-button>
                <el-button type="primary" @click="editssscjh">修改</el-button>
                <el-button type="primary" @click="checkssscjh">查看</el-button>
            </div>
            <div>页面跳转</div>
            <div>
                <el-button type="primary" @click="tocgjh">采购计划</el-button>
                <el-button type="primary" @click="tocght">采购合同</el-button>
                <el-button type="primary" @click="toclkc">材料库存</el-button>
                <el-button type="primary" @click="tocgdd">采购订单</el-button>
                <el-button type="primary" @click="tosgjh">总施工计划</el-button>
                <el-button type="primary" @click="toyhgl">用户管理</el-button>
                <el-button type="primary" @click="toclList">材料列表</el-button>
                <el-button type="primary" @click="toDataBoard">数据看板</el-button>
            </div>
            <div style="height: 0;width: 0;overflow: hidden;"><input id="publicValue" type="text"></div>
        </div>
		<script src="js/public.js?12345"></script>
		<script>
			var layer = layui.layer
			var vm = new Vue({
				el: '#app',
				data() {
					return {
                        showApp: false
					};
				},
				methods: {
                    toDataBoard(){
                        window.location.href = "./dataBoard/dataBoard.html";
                    },

                    toclList () {
                        window.location.href = '/cl/clList.html'
                    },
                    toyhgl () {
                        window.location.href = '/yhgl/yhglList.html'
                    },
                    tosgjh () {
                        window.location.href = '/sgjdjh/sgjhPage.html'
                    },
                    tocgdd () {
                        window.location.href = '/cgdd/cgddList.html'
                    },
                    editcgdd () {
                        var recid = 'a498b768892d46ac9d8283db304236de'
                        var companyId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '修改订单',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['91.4%', '89.81%'],
                            content: 'cght/editCgorder.html?companyId='+ companyId +'&recid=' + recid + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    toclkc () {
                        window.location.href = '/clkc/clkcList.html'
                    },
                    // 采购合同列表
                    tocght () {
                        window.location.href = '/cght/cghtList.html?projectId=G000077&companyId=G000077'
                    },
                    // 采购计划列表
                    tocgjh () {
                        window.location.href = '/cgjh/cgjhList.html?projectId=G000077'
                    },
                    // 工程信息-修改工程
                    editGc () {
                        var recid = '3893039422936973312'
                        var companyId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '修改工程',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            // area: ['85.41%', '89.81%'],
                            area: ['99%', '99%'],
                            content: 'gcxx/editGc.html?companyId='+ companyId +'&recid=' + recid + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 工程信息-查看工程
                    checkGc () {
                        var recid = '3886869025258471424'
                        var companyId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '查看工程',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            // area: ['85.41%', '89.81%'],
                            area: ['99%', '99%'],
                            content: 'gcxx/checkGc.html?recid=' + recid + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 工程信息-添加工程
                    addGc () {
                        var companyId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '添加工程',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            // area: ['85.41%', '89.81%'],
                            area: ['99%', '99%'],
                            content: 'gcxx/addGc.html?companyId='+ companyId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 施工阶段计划-添加
                    addssscjh () {
                        var projectId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '添加施工阶段计划',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['64.73%', '89.81%'],
                            content: 'sgjdjh/add.html?projectId=' +  projectId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 施工阶段计划-修改
                    editssscjh () {
                        var projectId = 'G000077'
                        var recid = '14'
                        layer.open({
                            type: 2,
                            title: '修改施工阶段计划',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['64.73%', '89.81%'],
                            content: 'sgjdjh/edit.html?recid='+ recid +'&projectId=' +  projectId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 施工阶段计划-查看
                    checkssscjh () {
                        var projectId = 'G000077'
                        var recid = '14'
                        layer.open({
                            type: 2,
                            title: '查看施工阶段计划',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['64.73%', '89.81%'],
                            content: 'sgjdjh/check.html?recid='+ recid +'&projectId=' +  projectId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 供应商-添加
                    addgys () {
                        var that = this
                        var companyId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '添加供应商',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['50.1%', '64.25%'],
                            content: 'gys/addGys.html?companyId=' +  companyId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 供应商-修改
                    editgys () {
                        var that = this
                        var companyId = 'G000077'
                        var recid = '3874510019185606656'
                        layer.open({
                            type: 2,
                            title: '修改供应商',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['50.1%', '64.25%'],
                            content: 'gys/editGys.html?gysId='+ recid +'&companyId=' +  companyId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 供应商-查看
                    checkgys () {
                        var that = this
                        var companyId = 'G000077'
                        var recid = '3874510019185606656'
                        layer.open({
                            type: 2,
                            title: '查看供应商',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['50.1%', '64.25%'],
                            content: 'gys/checkGys.html?gysId='+ recid +'&companyId=' +  companyId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 材料库存- 查看盘点记录
                    checkPdjl () {
                        var projectId = 'G000077'
                        var recid = '3ce9171244454cb09b7b9b7617ef9f31'
                        layer.open({
                            type: 2,
                            title: '查看盘点记录',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['63.38%', '89.81%'],
                            content: 'clkc/checkpdjl.html?recid='+ recid +'&projectId=' + projectId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 材料库存- 完善盘点记录
                    editPdjl () {
                        var projectId = 'G000077'
                        var recid = '3ce9171244454cb09b7b9b7617ef9f31'
                        layer.open({
                            type: 2,
                            title: '完善盘点单',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['63.38%', '89.81%'],
                            content: 'clkc/editpdjl.html?recid='+ recid +'&projectId=' + projectId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 材料库存- 查看入场记录
                    checkRcjl () {

                    },
                    // 材料库存- 添加计划盘点
                    jhpdAdd () {
                        var projectId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '添加计划盘点',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['63.38%', '89.81%'],
                            content: 'clkc/jhpdAdd.html?projectId=' + projectId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 材料库存- 添加领用单
                    cllyAdd () {
                        var projectId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '添加领用单',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['63.38%', '89.81%'],
                            content: 'clkc/cllyAdd.html?projectId=' + projectId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 材料库存- 添加盘点单
                    clpdAdd () {
                        var projectId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '添加盘点单',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['63.38%', '89.81%'],
                            content: 'clkc/clpdAdd.html?projectId=' + projectId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 材料库存- 存放数量
                    clkcCk () {
                        var projectId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '仓库1-混泥土详情',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['33.33%', '77.77%'],
                            content: 'clkc/checkCfsl.html?projectId=' + projectId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    cljccheck () {
                        var recordId = '206'
                        layer.open({
                            type: 2,
                            title: '查看进场单',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['62.23%', '98.88%'],
                            content: 'cljc/check.html?recordId='+ recordId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 材料进场-修改 
                    cljcEdit () {
                        var recordId = '107'
                        layer.open({
                            type: 2,
                            title: '修改进场单',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['62.23%', '98.88%'],
                            content: 'cljc/edit.html?recordId='+ recordId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 材料进场-添加
                    cljcAdd () {
                        var projectId = 'G000077'
                        var companyId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '添加进场单',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['62.23%', '98.88%'],
                            content: 'cljc/add.html?companyId='+ companyId +'&projectId='+ projectId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    },
                    // 工程信息-仓库设置
                    cksz_but () {
                        var projectId = 'G000077'
                        layer.open({
                            type: 2,
                            title: '仓库设置',
                            shadeClose: true,
                            shade: 0.4,
                            skin: 'popup_layui',
                            area: ['77.91%', '98.88%'],
                            content: 'gcxx/newwarehouseSet.html?projectId='+ projectId + '&' + new Date().getTime(),
                            end: function() {
                            }
                        });
                    }
				},
				mounted() {
                    this.showApp = true;
				}
			});
		</script>
	</body>
	<style>
		.page-container {
            padding: 20px;
        }
	</style>
</html>
